tests: Add a commented out test for mirroring with deltas
authorColin Walters <walters@verbum.org>
Mon, 1 Jun 2015 22:15:42 +0000 (18:15 -0400)
committerColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 13:07:28 +0000 (09:07 -0400)
tests/test-pull-mirror-summary.sh

index 87182bce5e18234aee0bde90d45864ba0c4763cc..a46f3d093274325fde7b231bd26726d46856587d 100755 (executable)
@@ -69,3 +69,16 @@ ${OSTREE} --repo=repo pull --mirror origin
 assert_has_file repo/summary
 assert_has_file repo/summary.sig
 echo "ok pull mirror with signed summary"
+
+# Uncomment when we support mirroring deltas
+#
+# ${OSTREE} --repo=${test_tmpdir}/ostree-srv/gnomerepo static-delta generate main
+# origmain=$(ostree --repo=${test_tmpdir}/ostree-srv/gnomerepo rev-parse main^)
+# newmain=$(ostree --repo=${test_tmpdir}/ostree-srv/gnomerepo rev-parse main)
+# ${OSTREE} --repo=${test_tmpdir}/ostree-srv/gnomerepo summary -u ${COMMIT_SIGN}
+# ${OSTREE} --repo=repo pull --mirror origin
+# ${OSTREE} --repo=repo static-delta list >deltas.txt
+# assert_file_has_content deltas.txt "${origmain}-${newmain}"
+
+# echo "ok pull mirror with signed summary covering static deltas"
+